import {request} from '@/util/request'

export const accountApi = {
  getPages: (query) => request('/account/getPages', query, 'post', true),
  export: (query) => request('/account/getPages', query, 'post', true),
  create: (query) => request('/account/create', query, 'post', true),
  update: (query) => request('/account/update', query, 'post', true),
  delete: (id) => request('/account/delete/' + id, null, 'post', true),
  getByid: (id) => request('/account/getById/' + id, null, 'get', true)
}
